package com.usefullc.user.query;

import com.usefullc.common.enums.QueryExpressTypeEnum;
import com.usefullc.system.query.BaseQuery;
import com.usefullc.system.service.component.extend.UsefulQueryField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;

/**
 * @author: Sampson
 * @date: 2022-01-09 09:55
 */
@ApiModel
@Data
public class DeptQuery extends BaseQuery {

    @UsefulQueryField
    @ApiParam(value = "用户ID")
    private Long userId;

    @UsefulQueryField
    @ApiModelProperty(notes = "编码")
    private String code;

    @UsefulQueryField(type= QueryExpressTypeEnum.LIKE_RIGHT,columnName = "code")
    @ApiModelProperty(notes = "编码like")
    private String codeLike;

    @UsefulQueryField
    @ApiModelProperty(notes = "父ID")
    private Long parentId;

    @UsefulQueryField
    @ApiModelProperty(notes = "名称")
    private String name;


}
